package com.xiaobawang.homework1226.controller;

import com.xiaobawang.homework1226.code.LogAnno.LogAnno;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Api(tags = "LogController")
@RestController
public class LogController {

    @LogAnno(operateType = "hello()")
    @GetMapping("/hello")
    @ApiOperation(value = "6666")
    public void hello() {
        System.out.println("Call this method externally");
    }

}
